calling wrong function FIXED!