minor modiciations