added small template stuff