Three globals do not seem needed thought. Maybe with commas you can use just one