add check for value