updated with minor correction in source code