addded return when no template loaded