implimented part of the ranges defect printing in stmt.java