updated querries