added debag source(in comment), added more stable consider screen state