using memcmp instead of loop