adding basic loigc