add error for when function used as statment