changed the argb function a little