removed deprecated method, updated test and docs
style