removed filetype check