avoiding double done calls