using a variable transfer function for the loop