why did you move the entire function?