More helper function of render