close minus some compiler error