some minor functional edits

let me know if these are kosher