trying to fix 'self' bug