type should be before commit in arguments, no?