careless mistake using sizeof function