using my version of render middle ware