removed template code causing gcc bug