solving (-5) problem