naming function doesn't work