added bite and moved code