update home func