modified for easier use