Influence of whispering gallery modes (WGMs) on energy transfer