fixing statement printing