conversion to EF