fixed a weird closure thing