have sth wrong with the last 8 lines