fixed mark function a bit