added functionalities to methods