added print solutions while adding