sample creation implemented