pass session to Sample