edited science function in subject controller