Correcting the cd functions into insinto function