fix - use of wrong function