all three variables passed in simultaneously