pass the right parameters around