fixed the protype funct in sidebar