made flego global variables