any way we can avoid hard-coding these constants here?