add marker offset function