removed extension check from file