added generics box creation method