added input checker methods