implement target inheritence + fix multiline codes