check frames correctly