replace cass vars with instance vars