filter some parameters we get from the API