added callback function for static_map