wrote a test sample works fine