updated with 'with' statement