fixing two mistakes