making the logic human-readable :)