iwt working
merged functions