implementando as querys