do not print sorted data
add check function