added 'clean' parameter
minor fix