adding draft for square detector