changed to accept multiple arguments