implemented two commands