finished math part and started adding refs