added get contacts function