POSSIBLE MECHANISMS FOR GENERATING HARD X RAYS IN SOLAR FLARES.