added new pacman functions