correctly read frames