refactored create command