restructure output expresssions prototype