reformatted solution