fixed result printing again (to be reworked..)