point-free function for simplicity and better compiled code