removed rotate clockwise, changed thershold values