simplified driver code