created weighted development factor function