check empty value first