removed index spec and modified user spec