command can take code aswell as string