modifying APIs for more convenience