resolved a problem with a badly defined function