reworked value integration when creating sample