added brackets to ntohl