memory error with 4 maps to make