solved all primary problems