implemented command and test