changed way of marking covered nodes