clipping detection done. closes #12