added a parse for params