try to find reference frame, not finished yet