fixed bug on category calcs. prepared for release