tried templated method on regular class