fixes from syntax checker