added like and pinit functions