changed list of arguments and added the "options" argument