fixed improper function format detection