removes unnecessary commands from the getpka to allow proper function and a jumping off point