working version with marker