reference frame can now be changed in first line