got rid of the functions setAsBool and checkAndSet, since they aren't needed