fix function to calc base values

tried to insert base calc function - scale errors - commented out