modified previous expressions and answers output