addaed n checks to local_complexity