it is python code instead of cpp