changes dones to both functions