removed commented code
remove unused histogram code
use proper sens