adding pixel resiudal