edited the sql in order to run