add fix frames function to get frame elements from syntax