fix deprecated flet function