need to debug f