made some chages in api