removed pairs hash and completed ex7