по необходимости

listen to the pronunciation of по необходимости