remove the res dependency