bug fixes with handling function and component looping for argument handling when sampling