the "print" function is needed to show intermediate