created basic functuanality