frame header calculation works