fix this being undefined