attempt on sorting out #9