added new methods

implemented new feature according to task