changes to ret code- fixed starting point

Signed-off-by: Lindsey <glickfeld@neuro.duke.edu>