update to use methods not the instance vars