implemented manual mode