finished outline code for updating retina