define collection and session attribute