added specialized query for subjects