changes to a bug on the spit method