implemented limit clause