changed main to point-free form