bug fixes
minor change in parameters