added estimate preview function