added attributes method to accept multiple attribute at once