better assign of session values