fixed mask on final layer, improvement threshold