solve  method security problem