simplified main