added function method