todo for better noise estimation