prepared functions for map