avatar working properly