updated funct and readme