fixing code i think