removed deprecated method because it does not work as intended