added map rendering from arrays