modified derek file