remove unused code for #5
implemented extends