added valve and valve rotation