After i have imported all necessary classes the attempt function still flags error and it does not if i call it straight without attaching it to guard..What can i do to solve th