implemented peek commands