updated prob6