credits to Hanmac who helped