dont forget the to round down id and class numbers