working on transform loop