fixed bug for not existing function