added normalize for frames