extra changes to replace python code