add if statment on each function that checks and evals for objects