undeclare function done as well