kabsch working