it still have bugs didnt sort correctly