fixed extend function