update to print from an array instead of a bunch of arguments