reworking the j48 functions