[chaneged] removed sample function