rewritten from coffee