changed modulo size to MAXHASHSIZE