corrected functions method name to avoid fatal error