changed user to access pet attributes