added return code to sequence samplers