added input selector method