make markItUpRemove function idempotent
Code formating