adding double equality to avoid type conversion