fixed render method