logic function creation tinkering