bug in figuring out if it's solved
solved bug fixed