fixed the contact class