changed instace structure