now using bind and values, now functions as planned