put in logic to remove extra semi-colons