added rightmost mode
command specified, implemented rightmost command