bugfix resolves function