fixed bug with the get_mark function. it was returning a tuple instead of an int