updated fixed output