need to complete sorting