removed unnecessary declaration: using <T> instead of <T extends Object>