realised it would be best to leave off span class in template functins and wrap function within span classes