this should do the first part