Solving ForntBack problem