modified for proj 1