making sure render is absolutely the last thing called in the stack