works until second global transformation