added functionality to all methods