adding code to marvin