change to accept array instead of multiple args