hacky boolean solution