Store elem works with generics code