basic functioning

think the functioning should work now