bugs fixed at generic typename