fixed the wrongly solved exercise, thanks to @jstepien