fixing jpg stage one