removed validation for files and minor syntax change