added create location method