add check for empty value