moves get_selector call to after definition