simpler code to track marks