TP3-2 add some more useful commands
fixed return statement