cleaned up contact book code