figuiring out template stuff