removed hardcoded frame size