implement frames and fixed problem solution state