file lottery by Khaled and Balazs