prep. for render()