refactored create markers into seperate functions