remuve create command method and fix code