removed reflection and boxed warnings