rene tassy: added generics. still working on rendering