removed duplicate code to basr controller