added Galt's patch