added prints to all return statements