fixing format of dspec