first step for render