function keyword inconsistency