modified frame solution