implementing getContent
updated type and edited queries