fixing some anomoulous errors from last commit that were discovered