updated for ATTiny version