now working bb for all orientations