additions

added gross lead check and switched the ppc and old domain to use sin
instead of lambda function it seems to run faster