Layoffs may be necessary to close deficit