working for half of problmes