added vertex tolerance