updated based on corey's comment