add check for max map count