fixed mark sold function