small code change in api