with complett outputs and removed unused commentar