refactored address lookahead in order to reduce unnecessary complexity