fix complexity checks