some minor alterations