Dispersive properties of Schrodinger and wave equations with perturbation