explicitly included linits.h for SHRT_MAX