*added functions for mapping