fix type
add thereshold check, good
Merge branch 'master' of https://github.com/Currentor/Aria