fixing :extend issue