stage 1 of custom template