fixed broken target implementation