making 'method' optional