fixed call to code method