generator helper for testing
better sample generator