create separate function to map input to command public properties