cleaned up noise calculations