removed unnecessary params check