workaround for compilation error. functionality broken