change get attributes method