new logic with some problems

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>
new logic with some problems

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>