changed for c90 compliance