converting to integers to remove '%'