convert the top command