made some safety features for 1g gaussian clustering for edge cases