careful with indentation

also, use the builtin `sum` function!