remove unused function
exit codes