NOT READY TO GO!
added RFM (read from map) function!