added fifth parameter to lcov function