added logic for sportsteam entity