fixed new marker function