perfected code