fix brackets, remove debugging