some tweaks for the dips to pixels conversion