added helper function for getting available formats