changed method name and added functions for the convenience