started coding on qmap.R