resolves compile errors (untested)