added some methods as T. said