conter changed to bool and new script