removal of return with double ref