made small changes to make it valid