fixes according to PR comments.