now uses a main clause