added another parameter for performance checking