cleaned up custom markers function