main is now stack attribute not local