added other methods and also modified to other methods to ease the work