parsing in the controller