Generics  stack code added