handle ~