what is s and d? we need to start using meaningful names for the variables, and parameters too