anonymous func sample add