added code for loder