added substr