Done, bugs on d f & g