solving consistances