removed the restriction of balanced number of '#'