small changes and almost printalbe j class