fixed bug with imported functions