Forgot to erase a print line, that served to check if function worked well