second transformation. seems to be working