working build of partial functions