reorder parameters for better chaining