added another case for bottom positioning