spl calculations added