fixing attribute access