add bins and improved pdf