adjust remove marker function