added final refinment