little function for magento