started adding functions