changed fmap to map