while we are at it I'd rename tr to transform :)