changed quality value cast from cast to int ( | 0) to cast to number ( - 0)