cleaned up the params object