replace logic control method