finished expand funtion