added code for ldf-gae