adapt to project struct
from old struct