simple gauss operation