implement line transforms