changes made to make it work