Refactory srpec method