added controls for apop