Forgot empty check, now no seg but BUG
BUG fixed. b was picking up garbage