problem c working