made that complex method even simpler