finished, fixed + output