properly update renderMethod