remove old useless code from previous attempt