added comments for converting function arguments to an array