render method modified