fixed initialization conditions